package com.blb.community.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.blb.community.entity.SysDictData;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.blb.community.entity.vo.DictDataVo;

import java.util.List;

/**
 * <p>
 * 字典数据表 Mapper 接口
 * </p>
 *
 * @author 帅帅
 * @since 2022-07-02
 */
public interface SysDictDataMapper extends BaseMapper<SysDictData> {

    /**
     * 分页查询字典数据(+模糊查询)
     * @return
     */
    IPage<SysDictData> selectAllSysDictData(IPage<SysDictData> page, DictDataVo dictDataVo);

    /**
     * 根据字典类型查询字典数据
     * @param dictType
     * @return
     */
    List<SysDictData> selectSysDictDataByType(String dictType);

    /**
     * 分页查询
     * @param page
     * @return
     */
    IPage<SysDictData> selectSysDictDataByType(IPage<SysDictData> page,DictDataVo dictDataVo);

    /**
     * 逻辑删除
     * @param dictCode
     */
     void logicDeleteDictData(Long dictCode);
}
